package com.zx.map.utils;



/**
 * 
 * @ClassName: SUConstants
 * @Description: 常量类
 * @author: wanglt
 * @date: 2015年2月28日 上午11:07:34
 * 
 */
public abstract class SUConstants {
	public static long serialVersionUID=-1593749853030896648L;
	/**
	 * 返回值成功状态
	 */
	public static final String CODE_SUCCESS_VALUE = "1";

	/**
	 * 返回值失败状态
	 */
	public static final String CODE_FAIL_VALUE = "0";

	/**
	 * 返回值状态键
	 */
	public static final String CODE_KEY = "code";

	/**
	 * 返回值信息键
	 */
	public static final String MSG_KEY = "msg";

	/**
	 * 服务器处理异常提示
	 */
	public static final String MSG_SUCCESS_VALUE = "OK";
	public static final String MSG_SUCCESS_VALUE_SAVE = "保存成功";
	public static final String MSG_ERROR_VALUE_SAVE = "保存失败";
	public static final String SERVER_ERROR = "服务器异常";
	public static final String PARAM_ERRROR="请求参数异常";
	/**
	 * 返回值对应的key
	 */
	public static final String INFO_KEY = "info";

	/**
	 * 分页，每页页条数
	 */
	public static final int PAGE_DEFAULT_START = 0;
	public static final int PAGE_COUNT = 10;
	/**
	 * 不分页处理
	 */
	public static final int PAGE_NOT_PAGE_COUNT = Integer.MAX_VALUE;

	/**
	 * 交易类型
	 */
	public static final String TRANSTYPE_INCOME = "1001";   //线上扫码收款
	public static final String TRANSTYPE_NOCARDINCOME = "1002"; //线上无卡收款
	public static final String TRANSTYPE_CARDINCOME = "1003"; //nfc 刷卡收款
	public static final String TRANSTYPE_OFFLINE_INCOME = "1004";//线下扫码收款 标准费率
	public static final String TRANSTYPE_AGENT_PROMATION = "1005";   // 代理高迁
	public static final String TRANSTYPE_RECHARGE = "1006";//充值
	
	public static final String TRANSTYPE_INSURANCE="1008";//众安保险
	public static final String TRANSTYPE_T0ENCASH = "2001";   //T0取现 秒到
	public static final String TRANSTYPE_T1ENCASH = "2002";  //T1取现 普通    p
	public static final String TRANSTYPE_CREDITENCASH = "2003";//信用卡还款 大额还款-秒到账
	public static final String TRANSTYPE_CONSUME = "2004"; //娱乐消费
	public static final String TRANSTYPE_SHAREPROFIT = "3001";  //分润收益

	/**
	 * 取现类型 1=T+1  0=T+0
	 */
	public static final String ENCASHTYPE_T0 = "0";
	public static final String ENCASHTYPE_T1 = "1";


	/**
	 * 默认密码
	 */
	public static final String DEFAULT_PWD = "88888888aa";
	public static final String DEFAULT_AGENTID = "A143";//总公司
	public static final String DEFAULT_SUBAGENTID="A204";//默认直属子公司

	/**
	 * 代理商层级编号
	 */
	public static final String AGENT_LEVEL_HEAD="10";//总公司
	public static final String AGENT_LEVEL_COMMON="19";//普通代理（分享升级）
	public static final String AGENT_LEVEL_SUBCOMPANY="11";//分公司
	public static final String AGENT_LEVEL_SUPER="12";//高级代理
	public static final String AGENT_LEVEL_WILL="20";//意愿代理


	/**
	 * 分润级别
	 */
	public static final String PROFIT_LEVEL_WILL="0";//万二分润 1 2 3分润级别

	/**
	 * 下载xls超标
	 */
	public static final String DOWNLOAD_MAX_SIZE = "DOWNLOAD_MAX_SIZE";

	/**
	 * 支付方式
	 */
	public final static String paymentTypeAlipay="1";//支付宝
	public final static String paymentTypeWX="2";  //weixin

	/**
	 * 红包活动状态，页面请求参数
	 */
	public final static String REDPACKET_STATU_VALID = "1";//有效红包
	public final static String REDPACKET_STATU_INVALID = "2";//已经过了活动时间
	
	public final static int REDPACKET_IS_PROCESSING = 2;//该商户已经有一个在进行中的红包了
	public final static int ILLEGAL_DATE = -1;//创建或修改红包信息时判断开始结束时间是合法
	public final static int DEAL_SUCCESS = 0;//数据处理成功
	
	public final static String MESSAGE_TYPE_SYSTEM = "系统通知";//消息通知的类型为系统信息
	public final static String MESSAGE_TYPE_TRADE = "交易通知";//交易信息类型
	//订单交易状态：S:成功，F：失败，N：新建
	public final static String TRANS_STATUS_S = "S";
	public final static String TRANS_STATUS_F = "F";
	public final static String TRANS_STATUS_N = "N";
	
	//交易查询类型：TA交易额查询，TC：交易笔数查询，TM:人数，TCR：每笔交易均值查询，TMR：客单价
	public final static String TRANSTYPE_TA = "TA";
	public final static String TRANSTYPE_TC = "TC";
	public final static String TRANSTYPE_TM = "TM";
	public final static String TRANSTYPE_TCR = "TCR";
	public final static String TRANSTYPE_TMR = "TMR";
	//统计时间跨度:day按天查询，month：按月查询，week按周查询，Hour按小时查询
	public final static String DATE_UNIT_DAY = "day";
	public final static String DATE_UNIT_WEEK = "week";
	public final static String DATE_UNIT_MONTH = "month";
	public final static String DATE_UNIT_HOUR = "hour";
	//每一笔交易金额区间
	public final static String[] PRICERANGE = {"5元以下", "5-20元", "20-50元", "50-100元", "100-200元", "200元以上"};
}
